import request from '@/utils/request'
const path = "/merchant/spec"

export function findSpecList(params) {
    return request({
        url: path + '/',
        method: 'get',
        params
    })
}

export function createSpec(data) {
    return request({
        url: path + '/createAction/',
        method: 'post',
        data
    })
}

export function updateSpec(data) {
    return request({
        url: path + '/updateAction/',
        method: 'post',
        data
    })
}

export function deleteCates(data) {
    return request({
        url: path + '/deleteAction/',
        method: 'post',
        data
    })
}

export function getSpecInfo(data) {
    return request({
        url: path + '/getItemById/',
        method: 'post',
        data
    })
}
